
const models = {
  'product.product': {
    extend: BaseClass => {
      class cls extends BaseClass {
        get_history_price(company_id, date = null) {
          const data = this.call('get_history_price', [company_id, date]);
          return data;
        }
      }

      return cls;
    },
  },

/*
    'res.partner': {},
    'product.template': {},
    'product.category': {},
    'product.price.history': {},
    'product.packaging': {},
    'product.supplierinfo': {},
    'product.pricelist': {},
    'res.country.group': {},
    'product.pricelist.item': {},
    'product.attribute': {},
    'product.attribute.value': {},
    'product.template.attribute.line': {},
    'product.template.attribute.value': {},
    'product.template.attribute.exclusion': {},
*/

}

export default {
  name: 'product',
  depends: [ 'mail', 'uom' ],
  models,
};
